export interface GoodsQuery extends PageQuery {
  name?: string;
  sn?: string;
  enable?: number;
  compose?: number;
  type?: string;
}

export interface GoodsVO {
  id: number;
  sn: string;
  type: string;
  name: string;
  smallPic: string;
  cover: string;
  intro: string;
  images:	string;
  enable: number;
  price: number;
  cost: number;
  marketPrice: number;
  saleRebate: number;
  directSellerRebate: number;
  indirectSellerRebate: number;
  directBuyerRebate: number;
  indirectBuyerRebate: number;
  categoryPath: string;
  sortNum: number;
  supplierId: number;
  supplierName: string;
  warehouseCode: string;
  stock: number;
  compose: number;
  updateTime: string;
  createTime: string;
  composeList: Array<{
    sn: string;
    name: string;
    count: number;
  }>
}

export interface GoodsForm {
  id?: number;
  sn?: string;
  type: string;
  cost?: number;
  marketPrice?: number;
  price?: number;
  name: string;
  intro: string;
  cover: string;
  smallPic: string;
  images: string;
  warehouseCode: string;
  supplierId?: number;
  supplierName?: string;
  sortNum?: number;
  stock?: number;
  saleRebate?: number;
  directSellerRebate?: number;
  indirectSellerRebate?: number;
  directBuyerRebate?: number;
  indirectBuyerRebate?: number;
  composeList: Array<{
    sn: string;
    name?: string,
    count: number;
  }>
}